how do one expand path in node, e.g. '~/foo.txt' to '/home/iced/foo.txt'